package cn.itcast.aop;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
 

public class testAop {

 @Test
	public void test() {
//	 System.out.println("nisdch");
		ApplicationContext context = new ClassPathXmlApplicationContext(
				"beanaop.xml");
		Book book = (Book) context.getBean("book");
		book.add();
	}

}
